package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

public interface UserService {
    User findByUsername(String username);


    Integer add(User user, Integer[] roleIds);

    //分页查询
    PageResult findPage(QueryPageBean queryPageBean);

    //查询用户
    User findById(Integer id);

    //删除用户
    Integer deleteById(Integer id);

    Integer edit(User user, Integer[] roleIds);
}
